/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import type { ProColumns } from '@ant-design/pro-table';

export const lottery_platform = {
  weikuaidi: '微快递',
  vxmina: '快宝福利社',
  kbylmina: '快宝有礼',
};

export const lottery_type = {
  '0': '定时开奖',
  '1': '即抽即开',
};

export const lotteryLevel = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十'];

export const publishType = {
  money: '现金红包',
  url: 'URL',
  phone: '手机号',
  address: '地址信息',
};

export const actionValueEnum = {
  add: '新增',
  online: '上线',
  offline: '下线',
  update: '编辑',
  delete: '删除',
};

export const defColumns: ProColumns[] = [
  {
    title: '序号',
    dataIndex: 'id',
    width: 100,
    search: false,
    align: 'center',
  },
  {
    title: '创建时间',
    dataIndex: 'created_at',
    width: 130,
    search: false,
    align: 'center',
    ellipsis: true,
  },
  {
    title: '开奖时间',
    dataIndex: 'lottery_time',
    width: 130,
    search: false,
    align: 'center',
    ellipsis: true,
  },
  {
    title: '抽奖名称',
    dataIndex: 'name',
    width: 100,
    align: 'center',
    ellipsis: true,
  },
  {
    title: '发奖平台',
    dataIndex: 'platform',
    width: 100,
    align: 'center',
    ellipsis: true,
    valueEnum: lottery_platform,
  },
  {
    title: '创建人',
    dataIndex: 'operate_mobile',
    width: 100,
    search: false,
    align: 'center',
    ellipsis: true,
  },
];
